#if !defined(AFX_STO_H__E0502450_B66A_40AE_B008_DA73D00CF184__INCLUDED_)
#define AFX_STO_H__E0502450_B66A_40AE_B008_DA73D00CF184__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Sto.h : header file
#include "DragTree.h"
#include "Markup.h"

/////////////////////////////////////////////////////////////////////////////
// Sto dialog

class Sto : public CDialog
{
// Construction
public:
	Sto(CWnd* pParent = NULL);   // standard constructor
     DECLARE_DYNCREATE(Sto)
	 DECLARE_EASYSIZE
// Dialog Data
	//{{AFX_DATA(Sto)
	enum { IDD = IDD_Sto_DIALOG };
	CDragTree	m_StoTree;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(Sto)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	CString BookNameIsChang;
	void LoadChildNode(HTREEITEM hParentItem,CMarkup& xml);
	void LoadStoList(CString XmlPath);
    CImageList m_iImageList;
public:
	
	// Generated message map functions
	//{{AFX_MSG(Sto)
	virtual BOOL OnInitDialog();
	afx_msg void OnBeginlabeleditStoTREE(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnEndlabeleditStoTREE(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnRclickStoTREE(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnITEMReSto();
	afx_msg void OnITEMDelSto();
	afx_msg void OnITEMInsertSto();
	afx_msg void OnSetfocusStoTREE(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	void WriteBlistChild(HTREEITEM hItem,CMarkup& xml);
	void SaveToXml(HTREEITEM hItem);
	void CreatXml(CString filepath);
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STO_H__E0502450_B66A_40AE_B008_DA73D00CF184__INCLUDED_)
